<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>index</title>
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
	$(function(){
		$('#btn').click(function(){
			$.post('aaa',function(data){
				$('#myDiv').html(data.msg);
			});
			
		});
	})
</script>
</head>
<body>
	<h2>这是首页</h2>
	<button id="btn" type="button">点我</button>
	<div id="myDiv"></div>
</body>
</html>